Array.prototype.contains = function(obj) {
  var i = this.length;
  while (i--) {
    if (this[i] === obj) {
      return true;
    }
  }
  return false;
};

console.log(["rss.channel.go"].contains("rss.channel.go"));

a = {};
a['channel'] = {};
a.channel['page'] = 1;
console.log(a.channel.hasOwnProperty('page'));

session = JSON.parse('{"attributes":{"welcome":{"A":"B"}}}');
session['page'] = 1;

for (const key in session) {
  if (session.hasOwnProperty(key)) {
    const element = session[key];
    console.log(element)
  }
}

console.log(session);
